from pymongo import MongoClient
from .Config import Config


class MongoInst:
    @classmethod
    def get_instance(cls):
        return MongoClient(Config.url, Config.host)[Config.database]